//Create by Simon Wu in 2014-07-25
//Used for M21123 configuration

#ifndef  SPI_H_
#define  SPI_H_

#include "LPC17xx_gpio.h"
#include "LPC17xx_pinsel.h"
#include "LPC17xx_ssp.h"
#include "Lpc_types.h"

#define SSPX LPC_SSP0

void SSP_ReadBlock ( uint8_t  *data, uint16_t dlen);
void SSP_WriteBlock ( uint8_t  *data,uint16_t dlen);
#endif

